package com.gress.shop.dao;

import com.gress.shop.bo.Role;
import com.gress.shop.bo.example.RoleExample;

import java.util.List;

/**
 * Created xiongwen with 2018/4/12 10:14
 * Description:
 */
public interface IRoleDao {

    int countByExample(RoleExample example);

    int deleteByPrimaryKey(String id);

    int insert(Role record);

    /**
     * @param record
     * @Date: 22:23 2018/5/8
     * @Description:
     * @return: 主键
     */
    String insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    List<Role> selectAll();

    Role selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    boolean checkIsExist(String roleId);

    Role queryByCode(String roleCode);
}
